package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.Vip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.ArrayList;

@Mapper
public interface VipMapper {
    ArrayList<Vip> getVipByUid(Integer uid);
    ArrayList<Vip> getVipByUidAndVstate(@Param("uid") Integer uid, @Param("vstate") String vstate);
    int addVip(Vip vip);
    int deleteVip(Integer vid);
    int updateVip(Vip vip);
    Vip getVipByVidUseful(Integer vid);
    int deleteVipByUid(Integer uid);
}
